<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!--用户浏览权限设置页面  -->

<div class="easyui-layout" data-options="fit:true" style="margin-top:5px;">
    
   <div data-options="region:'west',collapsible:false,width:'39%'" style="border-left:0">
    	<div id="toolbar-UserGroupAccessRight">
	    </div>
	    <!-- 查看所有要分配访问权限的用户或权限组 -->
	    <table id="data-UserGroupAccessRight"></table>
    </div>  
  
    <div data-options="region:'east',collapsible:false,width:'60%'" style="border-top:0">
	    <div id="accessTabs" class="easyui-tabs" style="width:auto;height:100%;">  
	    	
	    	<!-- 查询显示字段权限 -->
	    	<div title="查询显示字段权限" style="display:none;">   
			    <div class="easyui-layout" data-options="fit:true" >
			    	<div data-options="region:'north'" class="north-min" style="border-left:0">
				         <span class="paddingTBL">
				         	允许使用查询字段模板
				        	<input id="fieldClassifyTemple">  
				         	<span class="paddingbtn"></span>
				       	 	<a class="easyui-linkbutton" onclick="addFieldTemple()">添加</a>
				       	 	<a class="easyui-linkbutton" onclick="updateFieldTemple()">修改</a>
				       	 	<a class="easyui-linkbutton" onclick="deleteFieldTemple()">删除</a>
			       	     </span>
			       	 </div>
			       	 
			       	  <div data-options="region:'west',title:'已选列',collapsible:false,width:'40%'" style="overflow-y:hidden">
    				 	 <div style="text-align:center;">
	    				 	 <span style="margin-top:5px;margin-left:5px;text-align: center;">
	    				     	 <a class="easyui-linkbutton" onclick="selectAllSelcted('Y')">全选</a>
	    					 </span>
	    					 <span style="margin-top:5px;margin-left:5px;text-align: center;">
	    				     	 <a class="easyui-linkbutton" onclick="selectAllSelcted('N')">全不选</a>
	    					 </span>
    				 	 </div>
    					 <div style="overflow-y:scroll;height:92%;">
    				 		<div id="selectedField-tree" class="ztree"></div>
    				 	 </div>
		    		 </div> 
		    		
		    		 <div data-options="region:'east',collapsible:false,border:false,width:'60%'">
					      <div class="easyui-layout" data-options="fit:true"> 
		    				 <div data-options="region:'west',border:false,width:'86px;'" style="text-align:center">
			    				   	<p style="margin-top:25px;">
				    				 	<a class="easyui-linkbutton" onclick="addField()"><增加列</a>
				    			   	</p>
				    			   
				    			   	<p style="margin-top:8px;">
						       	 	 	<a class="easyui-linkbutton" onclick="deleteField()">删除列></a> 
						       	   	</p> 
						       	   	<p style="margin-top:60px;">
						       	   		<a class="easyui-linkbutton" onclick="moveNodeField('up')">↑上移</a>
						       	   	</p>
						       	   	<p style="margin-top:8px;">
						       	   		<a class="easyui-linkbutton" onclick="moveNodeField('down')">↓下移</a>
						       	  	</p>
		    				 </div>
		    				 
		    				 <div data-options="region:'center',title:'所有可选列',collapsible:false" style="overflow-y:hidden">
						       		<p style="margin-top:5px;margin-left:5px;">
					 					<input class="easyui-searchbox" style="width:90%;max-width:240px;height:24px;" 
					 					data-options="searcher:searchField,prompt:'输入名称查询',iconWidth:35" id="search-Field"/>
						 			</p>
						 		 
						 		    <div style="overflow-y:scroll;height:92%;">
						 				<div class="easyui-tree" id="Field_tree"></div>
						 			</div>
					         </div> 
		    			 </div> 
	    			</div>
	    			
			    </div> 
		    </div>    
		    <!-- 查询显示字段权限 -->
		    
		    <!-- 图片分类权限 -->
		    <div title="图片分类权限" style="display:none;"> 
			    <div id="toolbar-imgData">
			    	<span class="paddingTBL">
			       		允许使用图片分类模板
				    	<input id="imgClassifyTemple">  
				    	<a class="easyui-linkbutton" onclick="addImgTemple()">添加</a>
				     	<a class="easyui-linkbutton" onclick="updateImgTemple()">修改</a> 
				     	<a class="easyui-linkbutton" onclick="deleteImgTemple()">删除</a> 
			    	</span> 
			    </div> 	 
				<table id="data-imgTempleSetting" style="height: 100%;"></table>
		    </div>  
		    <!-- 图片分类权限 -->
		    
		    <!-- 其他设置 -->
		    <div title="其他设置" style="display:none;">
	    	   <div style="margin:12px 12px;width:420px;border:1px solid #dad9d9">
			    	<form id="form-accessInfo" class="paddingTBL">   
					    <div class="paddingB">默认图片浏览权限&nbsp;&nbsp;<span class="paddingbtn"></span>
				    		<label><input type="radio" name="right" value="1"/>无权限</label>&nbsp;&nbsp;&nbsp;
				    		<label><input type="radio" name="right" value="2" checked="checked"/>本科权限</label>&nbsp;&nbsp;&nbsp;
				    		<label><input type="radio" name="right" value="3"/>全部权限</label>
				    	</div>
				    	<div>默认申请浏览期限&nbsp;&nbsp;<span class="paddingbtn"></span>
				    		<input type="text" id="access-time" name="FLLQXSJ">
				    		<input id="time-type" name="FLLQXSJDW">
				    	</div>
				    </form>
			    </div>
			    <div style="width:420px;text-align:center;">
		    		 </span><a class="easyui-linkbutton" onclick="saveAccessSet()">保存</a>
		        </div>   
		    </div>
		    <!-- 其他设置 -->
		    
		</div>
    </div>   
</div> 
<script type="text/javascript" src="<%=request.getContextPath()%>/js/systemMaintenance/UserAccessRightSettings.js"></script>